<input type="hidden" name="spec_open" value="1">
<div class="spec-only {if isset($info) && $info.spec_open == 2}hide{/if}">
    {foreach name="tape" item="vo"}
    {if empty($vo['type']) || $vo['type'] != 'icon'}
    <div class="layui-form-item">
        <label class="layui-form-label">{$vo.title}</label>
        <div class="layui-input-inline">
            <input type="text" name="{$vo.field}" value="<?php echo !empty($info) ? $info[$vo['field']] : '';?>"
                   placeholder="￥" autocomplete="off" class="layui-input"
                   onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')">
        </div>
    </div>
    {/if}
    {/foreach}
</div>

<div class="spec-many {if !isset($info) || $info.spec_open == 1}hide{/if}">
    <div class="layui-form-item">
        <label class="layui-form-label">选择规格：</label>
        <div class="layui-input-inline" style="width: 250px">
            <select name="spec_id" lay-search lay-filter="spec_id" id="spec_id"></select>
        </div>
        <div class="layui-form-mid" style="padding: 0!important;margin-top: 2px">
            <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" lay-on="addSpecTpl">
                添加规格模板
            </button>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-block">
            <div class="spec-box"></div>
            <div class="add-spec">
                <div class="layui-inline add-spec-item hide">
                    <label class="layui-form-label w80">规格：</label>
                    <div class="layui-input-inline">
                        <input type="text" id="spec-title" placeholder="请填写规格"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline add-spec-item hide">
                    <label class="layui-form-label w80">规格值：</label>
                    <div class="layui-input-inline">
                        <input type="text" id="spec-val" placeholder="请填写规格值"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline add-btn-box">
                    <a class="layui-btn layui-btn-normal layui-btn-sm add-spec-btn"
                       lay-on="add">添加新规格</a>

                    <a class="layui-btn layui-btn-danger layui-btn-sm generate-btn"
                       lay-on="generate">生成</a>

                    <a class="layui-btn layui-btn-sm add-spec-item hide"
                       lay-on="addOk">确定</a>
                    <a class="layui-btn layui-btn-sm layui-btn-primary add-spec-item hide"
                       lay-on="clare">取消</a>
                </div>
            </div>

        </div>
    </div>
    <div class="layui-form-item generate">
        <label class="layui-form-label">批量设置：</label>
        <div class="layui-input-block flex">
            <div class="batch-table table">
                <p>待生成</p>
            </div>
        </div>
    </div>
    <div class="layui-form-item generate">
        <label class="layui-form-label">商品属性：</label>
        <div class="layui-input-block flex">
            <div class="spec-table table">
                <p>待生成</p>
            </div>
        </div>
    </div>
</div>
<div style="height: 100px"></div>